package com.cloudlead.customerAction.action;

import com.cloudlead.common.lang.annotation.Label;
import com.cloudlead.common.worker.action.impl.AbstractActionFactory;
import com.cloudlead.common.worker.annotation.Action;
import com.cloudlead.common.worker.annotation.Order;
import com.cloudlead.customerAction.BusinessModules;
import com.cloudlead.customerAction.service.GpsSer;
import com.cloudlead.customerService.GpsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import javax.validation.constraints.NotNull;

/**
 * Created by Administrator on 2015/11/24.
 */
@Controller
public class GpsActionFatory extends AbstractActionFactory implements GpsService {
    @Autowired
    GpsSer gpsSer;
    public GpsActionFatory() {
        super(BusinessModules.GpsInfo);
    }

    @Override
    @Action
    @Order(1)
    @Label("通过车牌获取gps信息")
    public Object getGpsInfo(@NotNull @Label("GPS公司名")String gpsName, @NotNull @Label("车牌号")String plate) {
        return  gpsSer.getGpsInfo(gpsName,plate);
    }
}
